
<?php
//switch working date
$lwd    =   isset($_REQUEST['lwd']) ?   $_REQUEST['lwd']    :   1;
?>
<div id="task-list" class="mod ui-widget-content ui-helper-clearfix ui-corner-all">

    <div class="hd ui-widget-header ui-helper-clearfix ui-corner-all"><h2>Tasks List</h2></div>

    <div class="bd">

        <fieldset class="ui-widget-content">
           <legend class="ui-widget-header">Today: <span id="task-date1"><?php echo $data['taskDay']['today']; ?></span></legend>

            <div class="cms-jqgrid">
                <table id="task-list1" class="scroll" ></table>
                <div id="task-pager1" class="scroll" ></div> 
            </div>

        </fieldset>

    <?php if ($lwd  &&  !empty($data['taskDay']['lastWorkDay'])) { ?>

        <fieldset class="ui-widget-content">
            
           <legend class="ui-widget-header">Last Working Date: <span id="task-date2"><?php echo $data['taskDay']['lastWorkDay']; ?></span></legend>

            <table id="task-list2" class="scroll" ></table>
            <div id="task-pager2" class="scroll" ></div> 

        </fieldset>

    <?php } ?>

    </div>

</div>
